import { stringify } from 'qs';
import request from '@/utils/request';
import {formDataCode} from '@/utils/utils';
// 获取订单评价列表 分页
export async function GetEvaluateListWithPage(params) {
    return request(`/${window.storeId}/Order/GetEvaluateListWithPage?${stringify(params)}`);
}

// 评价回复
export async function Reply(params) {
    return request(`/${window.storeId}/Order/Reply`, {
      method: 'POST',
      headers:{
        'Content-Type':"application/x-www-form-urlencoded",        
     },
     body: formDataCode(params)
    });
}
//拒审
export async function AuditEvaluateToNoPass(params) {
    return request(`/${window.storeId}/Order/AuditEvaluateToNoPass`, {
      method: 'POST',
      headers:{
        'Content-Type':"application/x-www-form-urlencoded",        
     },
     body: formDataCode(params)
    });
}
//审核
export async function AuditEvaluateToPass(params) {
    return request(`/${window.storeId}/Order/AuditEvaluateToPass`, {
      method: 'POST',
      headers:{
        'Content-Type':"application/x-www-form-urlencoded",        
     },
     body: formDataCode(params)
    });
}

